/*
 * SecurityConfig.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.secure;


/**
 * 网络安全配置
 *
 * @author kiri
 * @date 2015年3月8日
 * @version 1.0
 */
//@Configuration
//@EnableWebSecurity
public class SecurityConfig {

//	@Autowired
//	public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
//		auth.inMemoryAuthentication().withUser("user").password("123456").roles("USER").and().withUser("admin").password("admin")
//				.roles("USER", "ADMIN");
//		// auth.jdbcAuthentication().usersByUsernameQuery("");
//	}
//
//	@Configuration
//	public static class FormLoginSecurityConfig extends WebSecurityConfigurerAdapter {
//		protected void configure(HttpSecurity http) throws Exception {
//			http.csrf().disable();
//			http.authorizeRequests().antMatchers("/js/**", "/css/**", "/font/**").permitAll().antMatchers("/admin/**").hasRole("ADMIN")
//					.anyRequest().authenticated().and().formLogin().loginPage("/login.html").loginProcessingUrl("/auth/login")
//					.failureUrl("/error.html").defaultSuccessUrl("/index.html").permitAll();
//		}
//	}
}
